package com.ulife.order.api.response;

import com.ulife.common.gateway.utils.annotation.Description;

import java.io.Serializable;

/**
 * Created by Ulife- on 2016/1/21.
 */
@Description("优惠券信息")
public class CouponInfo implements Serializable {
    @Description("优惠券ID")
    public long id;
    @Description("优惠券类型（REDUCE=满减、POSTAGEREDUCE=包邮..）")
    public String type;
    @Description("优惠券描述")
    public String desc;
    @Description("优惠券名称")
    public String title;
    @Description("起始日期")
    public long start;
    @Description("结束日期")
    public long end;
    //----rules
    @Description("优惠限额")
    public double limit;
    @Description("优惠金额")
    public double preferential;
    @Description("优惠券规则描述")
    public String rulesDesc;

    @Description("是否在购物车默认选中的优惠券")
    public boolean isDefault;

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public long getStart() {
        return start;
    }

    public void setStart(long start) {
        this.start = start;
    }

    public long getEnd() {
        return end;
    }

    public void setEnd(long end) {
        this.end = end;
    }

    public double getLimit() {
        return limit;
    }

    public void setLimit(double limit) {
        this.limit = limit;
    }

    public double getPreferential() {
        return preferential;
    }

    public void setPreferential(double preferential) {
        this.preferential = preferential;
    }

    public String getRulesDesc() {
        return rulesDesc;
    }

    public void setRulesDesc(String rulesDesc) {
        this.rulesDesc = rulesDesc;
    }

    public boolean getDefault() {
        return isDefault;
    }

    public void setDefault(boolean aDefault) {
        isDefault = aDefault;
    }
}
